package com.juntuo.plugin;

import android.app.Activity;
import android.content.Intent;

import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;
import org.linphone.LinphoneLauncherActivity;


public class Sip extends CordovaPlugin {
    @Override
    public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
        Activity activity = cordova.getActivity();
        Intent intent = new Intent(activity, LinphoneLauncherActivity.class);
        activity.startActivity(intent);
        return super.execute(action, args, callbackContext);
    }


}
